﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace Client
{
    public partial class BaseChildForm : BaseForm
    {

        public BaseChildForm()
        {
            InitializeComponent();
            this.MdiParent = GlobalInfo.MainForm;
            this.WindowState = FormWindowState.Maximized;
        }

        public new void Show()
        {
            GlobalInfo.MainForm.ActivedChildForm(this);
        }


        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData == Keys.F5)
                this.BindData();
            return base.ProcessCmdKey(ref msg, keyData);
        }
        public virtual void BindData()
        {
 
        }

        
    }
}